<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="/user/findAll" method="get">
姓名：<input type="text" name="cname">
    年龄：<input type="number" name="age">
    <input type="radio" name="zt" value="0">未删除
    <input type="radio" name="zt" value="1">已删除
    <input type="submit" value="查询">
<a href="/user/tzadd">添加</a>
<table border="1">
    <tr>
        <td>Id</td>
        <td>姓名</td>
        <td>年龄</td>
        <td>性别</td>
        <td>手机号</td>
        <td>地址</td>
        <td>操作</td>
    </tr>
    <tr th:each="user:${list.getRecords()}">
        <td th:text="${user.getId()}"></td>
        <td th:text="${user.getName()}"></td>
        <td th:text="${user.getAge()}"></td>
        <td th:text="${user.getSex()}"></td>
        <td th:text="${user.getSjh()}"></td>
        <td th:text="${user.getDz()}"></td>
        <td>
            <a th:href="@{/user/del(id=${user.getId()})}">删除</a>
            <a th:href="@{/user/hx(id=${user.getId()})}">修改</a>
        </td>
    </tr>
</table>

<button><a href="/user/findAll?current=1">首页</a></button>

<button><a th:href="@{/user/findAll(current=${list.current-1})}">上页</a></button>
<button><a th:href="@{/user/findAll(current=${list.current+1})}">下页</a></button>
<button><a th:href="@{/user/findAll(current=${list.pages})}">尾页</a></button>
</form>
</body>
</html>